//
//  SCDiscoverViewController.swift
//  weibo
//
//  Created by 阿城 on 15/12/5.
//  Copyright © 2015年 阿城. All rights reserved.
//

import UIKit

class SCDiscoverViewController: SCBasicTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if visitorView != nil {
            
            visitorView?.setDetail("visitordiscover_image_message", text: "登录后,最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
            return
            
        }
        
        let searchView = SCSearchView.getSearchView()
        searchView.frame = CGRect(x: 0, y: 0, width: UIScreen.mainScreen().bounds.width, height: 35)
        printLog(view.frame)
        navigationItem.titleView =  searchView
    }
    
    

    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}
